package exam.note.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/4/4 17:26
 * @since JDK 1.8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("笔记类型")
public class NoteType implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty("主键id")
    private Integer id;

    @TableField("typename")
    @ApiModelProperty("类型名称")
    private String typeName;
}
